package view;

import modelo.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.InputStream;
import java.util.Observable;
import java.util.Observer;



public class HoraView extends Component implements Observer {

        private Graphics g;

        public Hora hora;

        public HoraView(Hora unaHora) {
                g = this.getGraphics();
                hora = unaHora;
        		hora.addObserver(this);
        }



        public void paint(Graphics g) {
                g.drawLine(hora.getX1(), hora.getY1(), hora.getX2(), hora.getY2());
        }


        public void update(Observable unLadAzul, Object arg1) {
                this.repaint();

        }


}